<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<title>嘉华金融</title>
	<style>
		.main {
			overflow: hidden;
			position: relative;
		}
		.pro-img1,.pro-img2 {
			float: left;
		}
		.top-img {
			overflow: hidden;
			position: relative;
		}
		html,body {
			width: 100%;
			height: 100%;
		}
		.promation-wrap {
			width: 100%;
			height: 100%;
			position: relative;
		}
		.show-img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			display:none ;
		}
		.show-img>div {
			position: relative;
			width: 100%;
			height: 100%;
			background: rgba(0,0,0,0.5);
		}
		.proimg-wrap {
			position: absolute;
			top: 50%;
			left: 0;
			transform: translateY(-50%);
		}
		.proimg-wrap img {
			width: 100%;
		}
		.close {
			padding: 10px;
			text-align: right;
			color: #fff;
			font-size: 20px;
			z-index: 10;
		}
		.close img {
			width: 20px;
			height: 20px;
		}
	</style>
</head>
<body>
	<div class="promation-wrap">
		<div class="page-wrap">
			<div class="header">
				<div><div class="back"></div></div>
				<div>推广分享</div>
				<div><div class="user-img"></div></div>
			</div>
			<div class="main">
				<div class="top-img">
					<img src="img/tui2.jpg" alt="" class="pro-img1">	
				</div>	
				<img src="img/tui23.jpg" alt="" class="pro-img2">
			</div>
		</div>
		<div class="show-img">
			<div>
				<div class="close"><img src="img/close.png" alt=""></div>
				<div class="proimg-wrap"></div>		
			</div>
		</div>

	</div>
	
	<script src="js/jquery-3.2.1.min.js"></script>
	<script src="js/index.js"></script>
	<script>
		var WIDTHP = $(window).width() / 320;
		var HEIGHTP = $(window).height() / 568;
		console.log($(window).width(),$(window).height())
		$(".pro-img1").width(320 * WIDTHP);
		$(".pro-img2").width(320 * WIDTHP);
		$(".main").height($(window).height() - $(".header").height() )
		$(".top-img").on("touchstart",function() {
			$(".page-wrap").css("display","none");
			$(".show-img").css("display","block");
			$(".proimg-wrap img").remove();
			var src = $(".pro-img1").attr("src");
			var srcurl = "<img src='"+src+"'>"
			console.log(src)
			$(".proimg-wrap").append(srcurl)
		})
		$(".close").on("touchend",function() {
			$(".page-wrap").css("display","block");
			$(".show-img").css("display","none");
		})
	</script>
</body>
</html>